package com.ckx.图形;

public class Test {
    //    5,接口是不能进行实例化的
//    IShape iShape=new IShape();
    public static void drawMap(IShape iShape) {
        iShape.draw();
    }

    public static void main(String[] args) {
        IShape iShape1 = new Cycle();
        IShape iShape2 = new Rect();
        iShape1.draw();
        iShape2.draw();
        drawMap(iShape1);
        drawMap(iShape2);

    }

}
